git clone https://github.com/Boburmirzo/apisix-standalone-deployment-mode.git
modify apisix.yml
upstreams:
- name: "example upstream"
id: 1
type: roundrobin
nodes:
"backend:80": 1
routes:
- name: "example-route",
uri: /
upstream_id: 1
plugins:
key-auth: {}
consumers:
- username: exampleuser
plugins:
key-auth:
key: example-key
#END
docker compose up
curl http://localhost:9080/
curl -i -X GET "http://localhost:9080/" -H "apikey: example-key"